import request from "@/utils/request";

//新增接口
export const addProdLine = (data) => {
  return request({
    url: "base/prodLine/add",
    method: "post",
    data,
  });
};
//编辑接口
export const updateProdLine = (data) => {
  return request({
    url: "base/prodLine/edit",
    method: "post",
    data,
  });
};
//查询接口
export const listProdLine = (params) => {
  return request({
    url: "base/prodLine/list",
    method: "get",
    params,
  });
};
//查产线表-查询一个用户的产线
export const listPage = (params) => {
  return request({
    url: "base/prodLine/listPage",
    method: "get",
    params,
  });
};
//删除接口
export const delProdLine = (params, data) => {
  return request({
    url: "base/prodLine/delete",
    method: "post",
    params,
    data,
  });
};
export const delBatchProdLine = (params, data) => {
  return request({
    url: "base/prodLine/deleteBatch",
    method: "post",
    params,
    data,
  });
};
//数据回显接口
export const getProdLine = (data) => {
  return request({
    url: `base/prodLine/queryById?id=${data}`,
    method: "post",
    data,
  });
};
